<?php 
if (!empty($this->flash_messages))
{
    foreach ($this->flash_messages as $flash_message)
    {
        echo '<div class="message">'.$flash_message.'</div>';
    }
}
?>
<h1 class="caption"><?php echo Zend_Registry::get('locale')->_('Statistics') ?></h1>


<?php if (!empty($this->uas)) : ?>
    <div class="log-item"><em><?php echo Zend_Registry::get('locale')->_('User Agents') ?>:</em></div>
    <ul>
    <?php foreach ($this->uas as $log) : ?>
      <li class="log-item">
        <?php echo $log ?>
      </li>
    <?php endforeach; ?>
    </ul>
<?php endif; ?>

<?php if (!empty($this->referers)) : ?>
    <div class="log-item"><em><?php echo Zend_Registry::get('locale')->_('Referers') ?>:</em></div>
    <ul>
    <?php foreach ($this->referers as $log) : ?>
      <li class="log-item">
        <?php echo $log ?>
      </li>
    <?php endforeach; ?>
    </ul>
<?php endif; ?>

<?php if (!empty($this->ips)) : ?>
    <div class="log-item"><em><?php echo Zend_Registry::get('locale')->_('IP-addresses') ?>:</em></div>
    <ul>
    <?php foreach ($this->ips as $log) : ?>
      <li class="log-item">
        <?php echo $log ?>
      </li>
    <?php endforeach; ?>
    </ul>
<?php endif; ?>
